[Rails 3] Creating helper tag with UJS

Posted by Theo B on Stack Overflow See other posts from Stack Overflow or by Theo B
Published on 2010-12-21T18:34:12Z Indexed on 2010/12/23 21:54 UTC
Read the original article Hit count: 370

Firstly, sorry for my english. I´m brazilian guy that is improving yet.

I want create a helper tag called "collection_cascading_select". That helper is similar to "collection_select", but he has one more argument called "source". The "source" is the other collection in the view.

Ever that other option is select in the "source", a javascript function needs run to gets his value. Then populate the "collection_cascading_select" collection agreed of that value.

That gets confusing ?!? Sorry... But help me! I'm one week in this problem and my brazilian brothers don´t are help me.

THANKS!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ruby-on-rails